<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BlogCommentType
 *
 * @author bien.tran
 */
namespace Blog\BlogBundle\Form;

use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\AbstractType;

class BlogCommentType extends AbstractType {

    public function buildForm(FormBuilder $formBuilder, array $options) {
        $formBuilder->add('content', 'textarea', array('label' => 'Your comment', 'required' => true));
    }
    public function getDefaultOptions(array $options)
    {
        return array('data_class' => 'Blog\BlogBundle\Entity\BlogComment');
    }
    public function getName() {
        return 'blog_blogbundle_blogcomment';
    }

}

?>
